const Router = require("koa-router");

const loginRouter = new Router({ prefix: "/login" });
const {verifyAuth} = require('../middeleware/login.middleware')
const {verifyToken} = require('../middeleware/auth.middleware')
const {login} = require('../controller/login.controller') 

// 登录 拿到账号 数据库中查找对应账号密码
loginRouter.post("/", verifyAuth,login);
loginRouter.post('/testtoken',verifyToken)


module.exports = loginRouter;
